﻿<%@ Page Title="S'inscrire" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
	CodeBehind="Register.aspx.cs" Inherits="appClient.Account.Register" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
	<h2>
		Créer un nouveau compte
	</h2>
	<p>
		Utilisez le formulaire ci-dessous pour créer un nouveau compte.
	</p>
	<span class="failureNotification" style="color:Red;font-weight:bold;">
		<asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
	</span>
	<asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
		ValidationGroup="RegisterUserValidationGroup" style="color:Red;font-weight:bold;" />
	<div class="mainContent">
			<div class="box">
				<div class="left-top-corner">
					<div class="right-top-corner">
						<div class="right-bot-corner">
							<div class="left-bot-corner">
								<div class="inner">
									<div class="wrapper line-ver">
										<div class="col-1" id="c1" runat="server">
											<fieldset>
												<legend>Informations de compte</legend>
												<p>
													<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Nom :</asp:Label><br />
													<asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
													<asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
														CssClass="failureNotification" ErrorMessage="Un nom est requis." ToolTip="Un nom est requis."
														ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
												</p>
												<p>
													<asp:Label ID="LastNameLabel" runat="server" AssociatedControlID="LastName">Prénom :</asp:Label><br />
													<asp:TextBox ID="LastName" runat="server" CssClass="textEntry"></asp:TextBox>
													<asp:RequiredFieldValidator ID="LastNameRequired" runat="server" ControlToValidate="LastName"
														CssClass="failureNotification" ErrorMessage="Un prénom est requis." ToolTip="Un prénom est requis."
														ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
												</p>
												<p>
													<asp:Label ID="AddressLabel" runat="server" AssociatedControlID="Address">Adresse :</asp:Label><br />
													<asp:TextBox ID="Address" runat="server" CssClass="textEntry"></asp:TextBox>
													<asp:RequiredFieldValidator ID="AddressRequired" runat="server" ControlToValidate="Address"
														CssClass="failureNotification" ErrorMessage="Une adresse est requise." ToolTip="Une adresse est requise."
														ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
												</p>
												<p>
													<asp:Label ID="ZipLabel" runat="server" AssociatedControlID="Zip">Code Postal :</asp:Label><br />
													<asp:TextBox ID="Zip" runat="server" CssClass="textEntry"></asp:TextBox>
													<asp:RequiredFieldValidator ID="ZipRequired" runat="server" ControlToValidate="Zip"
														CssClass="failureNotification" ErrorMessage="Un code postal est requis." ToolTip="Un code postal est requis."
														ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
												</p>
												<p>
													<asp:Label ID="CityLabel" runat="server" AssociatedControlID="City">Ville :</asp:Label><br />
													<asp:TextBox ID="City" runat="server" CssClass="textEntry"></asp:TextBox>
													<asp:RequiredFieldValidator ID="CityRequired" runat="server" ControlToValidate="City"
														CssClass="failureNotification" ErrorMessage="Une ville est requise." ToolTip="Une ville est requise."
														ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
												</p>
												<p>
													<asp:Label ID="CountryLabel" runat="server" AssociatedControlID="City">Pays :</asp:Label><br />
													<asp:TextBox ID="Country" runat="server" CssClass="textEntry"></asp:TextBox>
													<asp:RequiredFieldValidator ID="CountryRequired" runat="server" ControlToValidate="Country"
														CssClass="failureNotification" ErrorMessage="Un pays est requis." ToolTip="Un pays est requis."
														ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
												</p>
												<p>
													<asp:Label ID="PhoneLabel" runat="server" AssociatedControlID="Phone">Téléphone :</asp:Label><br />
													<asp:TextBox ID="Phone" runat="server" CssClass="textEntry"></asp:TextBox>
													<asp:RequiredFieldValidator ID="PhoneRequired" runat="server" ControlToValidate="Phone"
														CssClass="failureNotification" ErrorMessage="Un numéro de téléphone est requis."
														ToolTip="Un numéro de téléphone est requis." ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
												</p>
											</fieldset>
										</div>
										<div class="col-2" id="c2" runat="server">
											<fieldset>
												<legend>Informations de connexion</legend>
												<p>
													<asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">Adresse de messagerie :</asp:Label><br />
													<asp:TextBox ID="Email" runat="server" CssClass="textEntry"></asp:TextBox>
													<asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
														CssClass="failureNotification" ErrorMessage="Une adresse de messagerie est requise."
														ToolTip="Une adresse de messagerie est requise." ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
												</p>
												<p>
													<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Mot de passe :</asp:Label><br />
													<asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
													<asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
														CssClass="failureNotification" ErrorMessage="Un mot de passe est requis." ToolTip="Un mot de passe est requis."
														ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
												</p>
												<p>
													<asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">Confirmer le mot de passe :</asp:Label><br />
													<asp:TextBox ID="ConfirmPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
													<asp:RequiredFieldValidator ControlToValidate="ConfirmPassword" CssClass="failureNotification"
														Display="Dynamic" ErrorMessage="La confirmation du mot de passe est requise."
														ID="ConfirmPasswordRequired" runat="server" ToolTip="La confirmation du mot de passe est requise."
														ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
													<asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
														ControlToValidate="ConfirmPassword" CssClass="failureNotification" Display="Dynamic"
														ErrorMessage="Le mot de passe et le mot de passe de confirmation doivent correspondre."
														ValidationGroup="RegisterUserValidationGroup">*</asp:CompareValidator>
												</p>
											</fieldset>
											<p class="submitButton">
												<asp:Button ID="CreateUserButton" runat="server" CommandName="MoveNext" Text="Enregistrer"
													ValidationGroup="RegisterUserValidationGroup" OnClick="CreateUserButton_Click" />
											</p>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
	</div>
</asp:Content>
